package dao

import (
	"time"
)

// 这是 LiOrderItem 的全局公开dao对象
var LiOrderItemDao = liOrderItemDao{}

// 这是 li_order_item表 的实体类
type LiOrderItem struct {
	Id                    int       `json:"id" form:"id" v:"id"`                                                                // ID
	CreateBy              string    `json:"create_by" form:"create_by" v:"create_by"`                                           // 创建者
	CreateTime            time.Time `json:"create_time" form:"create_time" v:"create_time"`                                     // 创建时间
	DeleteFlag            bool      `json:"delete_flag" form:"delete_flag" v:"delete_flag" gm:"delete_flag"`                    // 删除标志 true/false 删除/未删除
	UpdateBy              string    `json:"update_by" form:"update_by" v:"update_by"`                                           // 更新者
	UpdateTime            time.Time `json:"update_time" form:"update_time" v:"update_time"`                                     // 更新时间
	AfterSaleStatus       string    `json:"after_sale_status" form:"after_sale_status" v:"after_sale_status"`                   // 售后状态
	CategoryId            string    `json:"category_id" form:"category_id" v:"category_id"`                                     // 分类ID
	CommentStatus         string    `json:"comment_status" form:"comment_status" v:"comment_status"`                            // 评论状态
	ComplainId            string    `json:"complain_id" form:"complain_id" v:"complain_id"`                                     // 交易投诉ID
	ComplainStatus        string    `json:"complain_status" form:"complain_status" v:"complain_status"`                         // 投诉状态
	FlowPrice             float64   `json:"flow_price" form:"flow_price" v:"flow_price"`                                        // 实际金额
	GoodsPrice            float64   `json:"goods_price" form:"goods_price" v:"goods_price"`                                     // 销售金额
	GoodsId               string    `json:"goods_id" form:"goods_id" v:"goods_id"`                                              // 商品ID
	Image                 string    `json:"image" form:"image" v:"image"`                                                       // 图片
	GoodsName             string    `json:"goods_name" form:"goods_name" v:"goods_name"`                                        // 商品名称
	Num                   int       `json:"num" form:"num" v:"num"`                                                             // 销售量
	OrderSn               string    `json:"order_sn" form:"order_sn" v:"order_sn"`                                              // 订单编号
	PriceDetail           string    `json:"price_detail" form:"price_detail" v:"price_detail"`                                  // 价格详情
	PromotionId           string    `json:"promotion_id" form:"promotion_id" v:"promotion_id"`                                  // 促销ID
	PromotionType         string    `json:"promotion_type" form:"promotion_type" v:"promotion_type"`                            // 促销类型
	SkuId                 string    `json:"sku_id" form:"sku_id" v:"sku_id"`                                                    // 货品ID
	Sn                    string    `json:"sn" form:"sn" v:"sn"`                                                                // 子订单编号
	SnapshotId            string    `json:"snapshot_id" form:"snapshot_id" v:"snapshot_id"`                                     // 快照ID
	Specs                 string    `json:"specs" form:"specs" v:"specs"`                                                       // 规格json
	TradeSn               string    `json:"trade_sn" form:"trade_sn" v:"trade_sn"`                                              // 交易编号
	PriceFluctuationRatio float64   `json:"price_fluctuation_ratio" form:"price_fluctuation_ratio" v:"price_fluctuation_ratio"` // 浮动价格比例
	UnitPrice             float64   `json:"unit_price" form:"unit_price" v:"unit_price"`                                        // 单价
	SubTotal              float64   `json:"sub_total" form:"sub_total" v:"sub_total"`                                           // 小记

}

// 注意:这是 LiOrderItem 的私有dao对象
type liOrderItemDao struct {
	Insert func(arg LiOrderItem) int         //插入一条记录
	Update func(arg LiOrderItem) int         //更新一条记录
	Delete func(arg LiOrderItem) int         //删除一条记录
	Select func(arg LiOrderItem) LiOrderItem //获取一条记录
}
